import Vue from 'vue'

import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  count: 0
}

const mutations = {
  increase(state, { num }) {
    state.count += num
  }
}

export default new Vuex.Store({
  state,
  mutations,
})